const mongoose = require('mongoose');

mongoose.connect('mongodb+srv://1839972624:12345678.@cluster0.k2zxt.mongodb.net/zgwu')
.then(()=>{
    console.log('数据库连接成功')
})
.catch(err=>{
    console.log('数据库连接失败'+err);
})

module.exports = mongoose;